﻿<%@ Page Language="C#" MasterPageFile="~/JOINT/MstPage_JOINT.master" ValidateRequest="false" AutoEventWireup="true" CodeFile="frmJ_StaffRewPunInput.aspx.cs" Inherits="JOINT_frmJ_StaffRewPunInput" Title="Untitled Page" Culture="ja-JP" uiCulture="ja"%>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
雇用情報登録
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <link href="../Style/JsStyle.css" rel="stylesheet" type="text/css" />

<script type="text/javascript" src="../Js/jquery.min.js"></script>
<script type="text/javascript" src="../Js/jquery.alphanumeric.pack.js"></script>
<script type="text/javascript" src="../Js/jquery.maskedinput.js"></script>
<script src="../js/Validation.js" type="text/javascript"></script>
    <script type="text/javascript"> 
    function mysplit(date) {
    var mydate = document.getElementById(date).value;
    if(mydate.length == 8)
    {
        var year = mydate.substr(0, 4);
        var month = mydate.substr(4, 2);
        var day = mydate.substr(6, 2);
        document.getElementById(date).value = year + '/' + month + '/' + day;
    }
    else
    {
       document.getElementById(date).value = ""; 
    }
}

function mysplitFocus(date) {
    var myvalue = document.getElementById(date).value;
    if(myvalue.length == 10)
    {
        var arr= myvalue.split("/");
        //alert(arr[0]+arr[1]+arr[2]);
        var lengthdate = arr[0]+arr[1]+arr[2];
       document.getElementById(date).value = lengthdate ;
    }
   
}   
    
    function numbersonly(myfield, e, dec)
{
var key;
var keychar;

if (window.event)
   key = window.event.keyCode;
else if (e)
   key = e.which;
else
   return true;
keychar = String.fromCharCode(key);

// control keys
if ((key==null) || (key==0) || (key==8) || 
    (key==9) || (key==13) || (key==27) || (key == 13) ) 
   return true;

// numbers
else if ((("0123456789").indexOf(keychar) > -1))
   return true;

// decimal point jump
else if (dec && (keychar == "."))
   {
   myfield.form.elements[dec].focus();
   return false;
   }
else
   return false;
}



$(document).ready(function() {
     registerEnterEvent("enter", "<%= btn_登録.ClientID %>", 3);
     registerControlToValidation("validation");
     formatDate("css_text_calender", "/");
 });

</script> 
  <style type="text/css">
    .imemode_active
    {
    	ime-mode: active;
    }
</style>     
    
    
  
  
  
  
  <div class="maindiv1">
        <div class="Header1">
            ＊: 必須.</div>
              <div class="NoteStyle">※下記の情報があれば、必須項目を入力してください。なければ、次ボタンを押してください。</div>

        <div>&nbsp;</div>
        
        <div class="detail-admin-row">
            <span class="detail-admin-label">賞罰名 :</span>
            <asp:TextBox ID="txt賞罰名" runat="server" Width="150px" MaxLength="100" ValidationGroup="detailForm" CssClass="Font_textbox imemode_active validation enter"></asp:TextBox><span class="required-field"> *</span>
        
        
        <asp:RequiredFieldValidator 
            runat="server" 
            ID="validate_txt賞罰名"
            ControlToValidate="txt賞罰名"
            Display="None"
            SetFocusOnError="false"
            ErrorMessage="" >
        </asp:RequiredFieldValidator> 
       
       <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender2"
       
        TargetControlID="validate_txt賞罰名" HighlightCssClass = "invalid" Width="260px"
        CssClass="CustomValidatorCalloutStyle" WarningIconImageUrl="../Images/warning.png" />
        
        
        
        </div>      
        
       <div class="detail-admin-row">
            <span class="detail-admin-label">賞罰年月日 :</span>
            <asp:TextBox ID="txt賞罰年月日" runat="server" ValidationGroup="detailForm" MaxLength = "8" CssClass="Font_textbox validation enter css_text_calender" style="ime-mode:disabled" onkeypress="return InputNumberKeys(this, event);" 
                Width="150px"></asp:TextBox><span class="required-field"> 
                    <asp:ImageButton ID="imb賞罰年月日" runat="server" Height="19px" ValidationGroup="detail"  CssClass="cal_Img"  ImageUrl="~/Images/calendar.jpg"/></span><span class="required-field"> *</span>
                   <ajaxToolkit:CalendarExtender ID="CalendarExtender1" runat="server" PopupButtonID="imb賞罰年月日"  Format="yyyy/MM/dd"
               TargetControlID="txt賞罰年月日"/>
                   
                   
                   
                   
           <asp:RequiredFieldValidator 
            runat="server" 
            ID="validate_txt賞罰年月日"
            ControlToValidate="txt賞罰年月日"
            Display="None"
            SetFocusOnError="false"
            ErrorMessage="" >
        </asp:RequiredFieldValidator> 
       
       <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender1"
       
        TargetControlID="validate_txt賞罰年月日" HighlightCssClass = "invalid" Width="260px"
        CssClass="CustomValidatorCalloutStyle" WarningIconImageUrl="../Images/warning.png" />
                   
        
        
         <%--<asp:RegularExpressionValidator runat="server" ID ="validate_regular_txt賞罰年月日" ControlToValidate="txt賞罰年月日"  ValidationExpression="^((((19|20)(([02468][048])|([13579][26]))[- /.]02[- /.]29))|((20[0-9][0-9])|(19[0-9][0-9]))[- /.]((((0[1-9])|(1[0-2]))[-  /.]((0[1-9])|(1\d)|(2[0-8])))|((((0[13578])|(1[02]))[- /.]31)|(((0[1,3-9])|(1[0-2]))[- /.](29|30)))))$" ErrorMessage="" Display="none" SetFocusOnError="false" ></asp:RegularExpressionValidator>--%>
            
            <asp:CustomValidator runat="server" ID="CustomValidator2"  ClientValidationFunction="isDate"
                ErrorMessage="" ControlToValidate="txt賞罰年月日" Display="None" SetFocusOnError="false" >
             </asp:CustomValidator>
            
            <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorRegular1"
            TargetControlID="CustomValidator2" HighlightCssClass = "invalid" Width="260px"
            CssClass="CustomValidatorCalloutStyle" WarningIconImageUrl="../Images/warning.png" />
                   
         
        <%-- <ajaxToolkit:MaskedEditExtender
            ID = "MEECalender"
            TargetControlID ="txt賞罰年月日" UserDateFormat="YearMonthDay" Century="1900" AutoComplete ="true" EnableViewState="true" ClearMaskOnLostFocus = "false"
            Mask="9999/99/99"
            MaskType="Number"
            runat="server">   
        </ajaxToolkit:MaskedEditExtender> --%>  
                
                   
                   
                   </div>
        <div class="detail-admin-row">
            <span class="detail-admin-label">賞罰特記事項 :</span>
            <asp:TextBox ID="txt賞罰特記事項" runat="server" ValidationGroup="detailForm" Width="331px" Rows="5" TextMode="MultiLine" CssClass="Font_textbox textarea imemode_active validation enter"></asp:TextBox><span class="required-field"> *</span></div>
        
         
          <asp:RequiredFieldValidator 
            runat="server" 
            ID="validate_txt賞罰特記事項"
            ControlToValidate="txt賞罰特記事項"
            Display="None"
            SetFocusOnError="false"
            ErrorMessage="" >
        </asp:RequiredFieldValidator> 
       
       <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender4"
       
        TargetControlID="validate_txt賞罰特記事項" HighlightCssClass = "invalid" Width="260px"
        CssClass="CustomValidatorCalloutStyle" WarningIconImageUrl="../Images/warning.png" />
        
        
        
         <asp:RegularExpressionValidator runat="server" ID ="validate_regular_txt賞罰特記事項" ControlToValidate="txt賞罰特記事項"  ValidationExpression="[\s\S\n]{1,500}" ErrorMessage="" Display="none" SetFocusOnError="True" ></asp:RegularExpressionValidator>
            
            <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender3"
            TargetControlID="validate_regular_txt賞罰特記事項" HighlightCssClass = "invalid" Width="260px"
            CssClass="CustomValidatorCalloutStyle" WarningIconImageUrl="../Images/warning.png" /> 
        
        
      <%--    <div style="display: none;">
            <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
            <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator1"
                        ControlToValidate="TextBox1"
                        Display="None"
                        ErrorMessage="TextBox1: display none." />
        </div>--%>
         
         
         
         <div class="detail-admin-row">
            <span class="detail-admin-label">&nbsp;</span>
             <asp:Button ID="btn_登録" runat="server" Text="登録" CssClass="btn" OnClientClick="javascript:focusToControlErr();"  
                  OnClick="btn_登録_Click"/>
             &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
             <asp:Button ID="btn_リセット" runat="server" Text="リセット"  CssClass="btn" ValidationGroup="detail"
                  OnClick="btn_リセット_Click"/>
         </div>
        
        
</div>
 <div class="detail-admin-row">
             <div class="btn_back">
                <asp:Button ID="btn_戻る"  runat="server" Text="←戻る" OnClick="btn_戻る_Click" CssClass="btn" ValidationGroup="detail"/>
             </div>
             <div class="btn_next btn_next_fixedforfrmJ_StaffBasicInfoInput ">
                 <asp:Button ID="btn_次"  runat="server" Text="次→" OnClick="btn_次_Click" CssClass="btn" ValidationGroup="detail"/>
             </div>
         </div>
  <div>&nbsp;</div>
  <br />   
</asp:Content>